package com.wzdigit.wms.wms.controller.inv.count;

import com.wzdigit.framework.model.response.ErrorEntity;
import com.wzdigit.wms.basic.enums.inventory.count.dtl.InvDtlResultEnum;
import com.wzdigit.wms.basic.enums.inventory.count.dtl.InvDtlStatusEnum;
import com.wzdigit.wms.basic.enums.inventory.count.header.InvHeaderResultEnum;
import com.wzdigit.wms.basic.enums.inventory.count.header.InvHeaderStatusEnum;
import com.wzdigit.wms.wms.constant.WmsWareConstant;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiResponse;
import io.swagger.annotations.ApiResponses;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;
import java.util.Map;

@RestController
@Api(tags = "盘点枚举")
@RequestMapping(value = WmsWareConstant.API_VERSION)
public class InvCountEnumController {
    public static final String REQUEST_MODEL = "/invCountEnum";
    @ApiOperation(value = "盘点任务表头状态枚举", notes = "盘点任务表头状态枚举")
    @ApiResponses({@ApiResponse(code = 500, message = "系统出现异常", response = ErrorEntity.class)})
    @RequestMapping(value = REQUEST_MODEL + "/headerStatus", method = RequestMethod.GET)
    public List<Map<String, Object>>  listHeaderStatus() {
        return  InvHeaderStatusEnum.getEnumListByDescription("Status");
    }

    @ApiOperation(value = "盘点任务表头结果枚举", notes = "盘点任务扁头结果枚举")
    @ApiResponses({@ApiResponse(code = 500, message = "系统出现异常", response = ErrorEntity.class)})
    @RequestMapping(value = REQUEST_MODEL + "/headerResult", method = RequestMethod.GET)
    public List<Map<String, Object>>  listHeaderResult() {
        return  InvHeaderResultEnum.getEnumListByDescription("Status");
    }

    @ApiOperation(value = "盘点任务明细状态枚举", notes = "盘点任务状态枚举")
    @ApiResponses({@ApiResponse(code = 500, message = "系统出现异常", response = ErrorEntity.class)})
    @RequestMapping(value = REQUEST_MODEL + "/dtlStatus", method = RequestMethod.GET)
    public List<Map<String, Object>>  listDtlStatus() {
        return  InvDtlStatusEnum.getEnumListByDescription("Status");
    }


    @ApiOperation(value = "盘点任务明细结果枚举", notes = "盘点任务结果枚举")
    @ApiResponses({@ApiResponse(code = 500, message = "系统出现异常", response = ErrorEntity.class)})
    @RequestMapping(value = REQUEST_MODEL + "/dtlResult", method = RequestMethod.GET)
    public List<Map<String, Object>>  listDtlResult() {
        return  InvDtlResultEnum.getEnumListByDescription("Status");
    }





}
